package domain.items;

import java.text.SimpleDateFormat;
import java.util.Date;


public class PostPacket extends Item{

	private static  SimpleDateFormat DateFormater = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");

	private String _owner;
	
	private String _subject;

	private String _content;
	
	private String _date;
	
	private String _score;

	public PostPacket(String owner, String subject, String content, Date date) {
		//super(null);
		this._owner = owner;
		this._subject = subject;
		this._content = content;
		this._date = DateFormater.format(date);
		this._type = Item.PACKET;
		this._score = "";
	}

	public void setScore(String score) {
		this._score = score;
	}

	public String getScore() {
		return this._score;
	}

	
	public void set_content(String content) {
		this._content = content;
	}

	public void set_subject(String subject) {
		this._subject = subject;
	}

	/**
	 * @return the _owner
	 */
	public String getOwner() {
		return _owner;
	}

	/**
	 * @return the _subject
	 */
	public String getSubject() {
		return _subject;
	}

	/**
	 * @return the _content
	 */
	public String getContent() {
		return _content;
	}

	/**
	 * @return the _date
	 */
	public String getDate() {
		return _date;
	}


}
